<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>AfterIdea Administration</title>
        <link rel="stylesheet" href="<?php echo base_url(); ?>script/css/admin.css" type="text/css" media="all" />
        <script type="text/javascript" src="<?php echo base_url(); ?>script/js/jquery.min.js"></script>
        <script type="text/javascript">
            var base_url = "<?php echo base_url();?>";
            $(document).ready(function(){
               $('a.column_delete').click(function(){
                   return confirm("Are you sure want to delete this entries");
               });
               change_type();
            });
            /*
            function change_cat(){
                id = $("#parent_cat").val();
                $("#products_cat").load(base_url+"admin/products/get_categories/"+id);
            }
            */
            function change_type(){
                type = $("#type_field").val();
                $(".images").hide();
                if(type==0){
                    $("#image1").show();
                }else if(type==1){
                    $("#image1").show();
                    $("#image2").show();
                } else{
                    $("#image1").show();
                    $("#image2").show();
                    $("#image3").show();
                }
                
            }
        </script>
    </head>
    <body>
        <!-- Header -->
        <div id="header">
            <div class="shell">
                <!-- Logo + Top Nav -->
                <div id="top">
                    <h1><a href="<?php echo base_url();?>admin">Afteridea</a></h1>
                    <div id="top-navigation">
                        Welcome <strong><?php echo $this->session->userdata('user_name');?></strong>
                        <span>|</span>
                        <a href="#">Help</a>
                        <span>|</span>
                        <a href="<?php echo base_url();?>admin/user/profile">Profile Settings</a>
                        <span>|</span>
                        <a href="<?php echo base_url();?>admin/logout">Log out</a>
                    </div>
                </div>
                <!-- End Logo + Top Nav -->
                
                <!-- Main Nav -->
                <div id="navigation">
                    <ul>
                        <li><a href="<?php echo base_url();?>admin/products" <?php echo ($active==1)?'class="active"':'';?>><span>Products</span></a></li>
                        <li><a href="<?php echo base_url();?>admin/designers" <?php echo ($active==2)?'class="active"':'';?>><span>Designers</span></a></li>
                        <li><a href="<?php echo base_url();?>admin/frontpage" <?php echo ($active==3)?'class="active"':'';?>><span>Frontpage</span></a></li>
                        <li><a href="<?php echo base_url();?>admin/purchase" <?php echo ($active==4)?'class="active"':'';?>><span>Purchase</span></a></li>
                    </ul>
                </div>
                <!-- End Main Nav -->
            </div>
        </div>
        <!-- End Header -->

        <!-- Container -->
        <div id="container">
            <div class="shell">
                
                <?php if(isset($breadcumb)):?>
                <!-- Small Nav -->
                <div class="small-nav">
                    <?php echo $breadcumb; ?>
                </div>
                <!-- End Small Nav -->
                <?php endif;?>

                <!-- Main -->
                <div id="main">
                    <div class="cl">&nbsp;</div>

                    <!-- Content -->
                    <div id="content">
                        <?php echo $content;?>
                    </div>

                    <div class="cl">&nbsp;</div>			
                </div>
                <!-- Main -->
            </div>
        </div>
        <!-- End Container -->

        <!-- Footer -->
        <div id="footer">
            <div class="shell">
                <span class="left">&copy; 2012 - CompanyName</span>
                <span class="right">
                    <!--Created by Yudi Retanto</a> -->
                </span>
            </div>
        </div>
        <!-- End Footer -->

    </body>
</html>